<?php /* Template_ 2.2.4 2011/05/24 15:35:27 E:\php\www\sagapo\_DATA\template_\default\admin\group\index.html 000002062 */ 
$TPL_list_1=empty($TPL_VAR["list"])||!is_array($TPL_VAR["list"])?0:count($TPL_VAR["list"]);?>
<h2 class="group">
	그룹 관리
	<button type="button" class="add" onclick="move('<?php echo $TPL_VAR["CFG"]->PATH->WWWADMIN?>/group/add')">추가</button>
</h2>
<section class="default">
	<script>
		$(function() {
			$(".table_delete").click(function(){
				if(!confirm("정말로 삭제하시겠습니까?")) return false;
			});
		});
	</script>
	
	<table class="table">
		<caption>
			그룹관리
		</caption>
		<colgroup>
			<col class="t_chk" />
			<col />
			<col class="t_group_date" />
			<col class="t_etc" />
		</colgroup>
		<thead>
			<tr>
				<th scope="col"><input type="checkbox" name="chk[]" /></th>
				<th scope="col">그룹명</th>
				<th scope="col">생성일</th>
				<th scope="col">비고</th>
			</tr>
		</thead>
		<tbody>
<?php if($TPL_VAR["list"]){?>
<?php if($TPL_list_1){foreach($TPL_VAR["list"] as $TPL_V1){?>
			<tr>
				<td class="txt_center"><input type="checkbox" name="chk[]" /></td>
				<td><a href="view/<?php echo $TPL_V1->g_seq?>"><?php echo $TPL_V1->g_name?></a></td>
				<td class="txt_center"><?php echo $TPL_V1->cdate?></td>
				<td class="txt_center">
					<a href="modify/<?php echo $TPL_V1->g_seq?>">
						<img src="<?php echo $TPL_VAR["CFG"]->PATH->IMAGE?>/icons/pencil.png" alt="수정" />
					</a>
					&nbsp;
<?php if($TPL_V1->g_delete== 1){?>
					<a href="doDelete/<?php echo $TPL_V1->g_seq?>">
						<img src="<?php echo $TPL_VAR["CFG"]->PATH->IMAGE?>/icons/delete.png" alt="삭제" class="table_delete" />
					</a>
<?php }?>
				</td>
			</tr>
<?php }}?>
<?php }else{?>
			<tr>
				<td colspan="4" class="txt_center no_data">
					등록된 그룹이 없습니다. <a href="<?php echo $TPL_VAR["CFG"]->PATH->WWWADMIN?>/group/add" class="icon_add_btn">추가</a>
				</td>
			</tr>
<?php }?>
		</tbody>
	</table>
</section>